﻿using System;
using System.Threading.Tasks;

namespace IceCS.HttpLib.Cmd
{
    class Program
    {
        static void Main(string[] args)
        {
            GetBaidu();
            while (true)
            {
                Task.Delay(1000);
            }
        }

        private static void GetBaidu()
        {
            Http.Get("https://www.baidu.com").OnSuccess(result =>
            {
                Console.Write(result);
            }).Go();
        }
    }
}
